<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Neutron Panel</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="/static/css/desktop.css">
    <link rel="stylesheet" type="text/css" href="/static/css/desktop_menu.css">
    <link rel="stylesheet" type="text/css" href="/api/home/.css">
    <style>
        .win_app {
            display: none;
        }
    </style>
    <script>
        // 检测js加载
        CHECK_DESKTOP = 0
        CHECK_DESKTOP_LOAD = 0
        CHECK_DESKTOP_SESSION = 0
        CHECK_DESKTOP_API_LOAD = 0
        function load_ready() {
            document.getElementById("win_app").classList.add("load_ready")
        }
        function error() {
            alert("加载失败！");
            location.reload()
        }
    </script>
    <script src="/static/js/desktop.js"></script>
    <script src="/static/js/desktop_load.js"></script>
    <script src="/static/js/desktop_session.js"></script>
    <script src="/static/js/desktop_api.js"></script>
    <script src="/static/js/desktop_menu.js"></script>
    <script src="/api/home/.js" defer></script>
    <link rel="icon" href="/static/img/neutron.png">
</head>

<body>
    <div id="win_movecover" oncontextmenu="event.preventDefault()"></div>
    <div id="win_app">
        <div id="win_header" oncontextmenu="spaceShowContextMenu(event)">
            <div id="win_header-desktop" oncontextmenu="spaceShowContextMenu(event)">
                <div id="win_header-desktop-highlight"></div>
            </div>
        </div>
        <div id="win_container" oncontextmenu="spaceShowContextMenu(event)">
            <div id="win_icon-container">

            </div>
        </div>
        <script>
            if (CHECK_DESKTOP + CHECK_DESKTOP_LOAD + CHECK_DESKTOP_SESSION + CHECK_DESKTOP_MENU + CHECK_DESKTOP_API_LOAD != 5) {
                error();
            }
            win_init();
            load_icons();
            load_session(load_ready);
        </script>
    </div>
</body>

</html>